package fenyu.personblob.single;

import fenyu.personblob.savepath.DefaultSaveDoor;
import fenyu.personblob.savepath.SaveDoor;

/**
 * 贮存器单例化管理
 * create at 2018/12/21 22:32
 *
 * @author 纷羽 <gzj0078@gmail.com>
 */
public class SingleSave {

    private static SingleSave singleSave = new SingleSave();

    protected static SingleSave getSingleSave() {
        return singleSave;
    }

    private SingleSave() {
    }

    private SaveDoor saveDoor = new DefaultSaveDoor();

    /**
     * 获取贮存器管理类
     * @return 贮存管理
     */
    public SaveDoor getSaveDoor() {
        return saveDoor;
    }

}
